import {defineStore} from "pinia";
import {listCollect} from "@/api/app/app.js";
import {listLabel} from "@/api/label/label.js";

const useCollectEditStore = defineStore("collectEdit", {
    state: () => ({
        content: {},
    }),
    actions: {
        setIcon(val){
            this.content.icon = val
        },
        setName(val){
          this.content.name = val
        },
        setIconColor(val){
            this.content.iconColor = val
        },
        setTagName(val){
          this.content.tagName =val
        },
        setContent(val){
            this.content = val
        },

    }
})

export default useCollectEditStore
